package com.jyh.db.entity;

import java.util.ArrayList;
import java.util.List;

public class JyhBaseInfoExample {
    /**
     * jyh_base_info
     */
    protected String orderByClause;

    /**
     * jyh_base_info
     */
    protected boolean distinct;

    /**
     * jyh_base_info
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public JyhBaseInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_base_info 2017-10-18
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIsNull() {
            addCriterion("homePagePic is null");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIsNotNull() {
            addCriterion("homePagePic is not null");
            return (Criteria) this;
        }

        public Criteria andHomepagepicEqualTo(String value) {
            addCriterion("homePagePic =", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotEqualTo(String value) {
            addCriterion("homePagePic <>", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicGreaterThan(String value) {
            addCriterion("homePagePic >", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicGreaterThanOrEqualTo(String value) {
            addCriterion("homePagePic >=", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLessThan(String value) {
            addCriterion("homePagePic <", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLessThanOrEqualTo(String value) {
            addCriterion("homePagePic <=", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLike(String value) {
            addCriterion("homePagePic like", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotLike(String value) {
            addCriterion("homePagePic not like", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIn(List<String> values) {
            addCriterion("homePagePic in", values, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotIn(List<String> values) {
            addCriterion("homePagePic not in", values, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicBetween(String value1, String value2) {
            addCriterion("homePagePic between", value1, value2, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotBetween(String value1, String value2) {
            addCriterion("homePagePic not between", value1, value2, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountIsNull() {
            addCriterion("borrowingAmount is null");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountIsNotNull() {
            addCriterion("borrowingAmount is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountEqualTo(Long value) {
            addCriterion("borrowingAmount =", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountNotEqualTo(Long value) {
            addCriterion("borrowingAmount <>", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountGreaterThan(Long value) {
            addCriterion("borrowingAmount >", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountGreaterThanOrEqualTo(Long value) {
            addCriterion("borrowingAmount >=", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountLessThan(Long value) {
            addCriterion("borrowingAmount <", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountLessThanOrEqualTo(Long value) {
            addCriterion("borrowingAmount <=", value, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountIn(List<Long> values) {
            addCriterion("borrowingAmount in", values, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountNotIn(List<Long> values) {
            addCriterion("borrowingAmount not in", values, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountBetween(Long value1, Long value2) {
            addCriterion("borrowingAmount between", value1, value2, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andBorrowingamountNotBetween(Long value1, Long value2) {
            addCriterion("borrowingAmount not between", value1, value2, "borrowingamount");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeIsNull() {
            addCriterion("formalitiesCharge is null");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeIsNotNull() {
            addCriterion("formalitiesCharge is not null");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeEqualTo(Long value) {
            addCriterion("formalitiesCharge =", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeNotEqualTo(Long value) {
            addCriterion("formalitiesCharge <>", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeGreaterThan(Long value) {
            addCriterion("formalitiesCharge >", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeGreaterThanOrEqualTo(Long value) {
            addCriterion("formalitiesCharge >=", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeLessThan(Long value) {
            addCriterion("formalitiesCharge <", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeLessThanOrEqualTo(Long value) {
            addCriterion("formalitiesCharge <=", value, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeIn(List<Long> values) {
            addCriterion("formalitiesCharge in", values, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeNotIn(List<Long> values) {
            addCriterion("formalitiesCharge not in", values, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeBetween(Long value1, Long value2) {
            addCriterion("formalitiesCharge between", value1, value2, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andFormalitieschargeNotBetween(Long value1, Long value2) {
            addCriterion("formalitiesCharge not between", value1, value2, "formalitiescharge");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayIsNull() {
            addCriterion("borrowingDay is null");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayIsNotNull() {
            addCriterion("borrowingDay is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayEqualTo(Integer value) {
            addCriterion("borrowingDay =", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayNotEqualTo(Integer value) {
            addCriterion("borrowingDay <>", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayGreaterThan(Integer value) {
            addCriterion("borrowingDay >", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayGreaterThanOrEqualTo(Integer value) {
            addCriterion("borrowingDay >=", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayLessThan(Integer value) {
            addCriterion("borrowingDay <", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayLessThanOrEqualTo(Integer value) {
            addCriterion("borrowingDay <=", value, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayIn(List<Integer> values) {
            addCriterion("borrowingDay in", values, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayNotIn(List<Integer> values) {
            addCriterion("borrowingDay not in", values, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayBetween(Integer value1, Integer value2) {
            addCriterion("borrowingDay between", value1, value2, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andBorrowingdayNotBetween(Integer value1, Integer value2) {
            addCriterion("borrowingDay not between", value1, value2, "borrowingday");
            return (Criteria) this;
        }

        public Criteria andDatanoIsNull() {
            addCriterion("DataNo is null");
            return (Criteria) this;
        }

        public Criteria andDatanoIsNotNull() {
            addCriterion("DataNo is not null");
            return (Criteria) this;
        }

        public Criteria andDatanoEqualTo(Integer value) {
            addCriterion("DataNo =", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoNotEqualTo(Integer value) {
            addCriterion("DataNo <>", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoGreaterThan(Integer value) {
            addCriterion("DataNo >", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoGreaterThanOrEqualTo(Integer value) {
            addCriterion("DataNo >=", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoLessThan(Integer value) {
            addCriterion("DataNo <", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoLessThanOrEqualTo(Integer value) {
            addCriterion("DataNo <=", value, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoIn(List<Integer> values) {
            addCriterion("DataNo in", values, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoNotIn(List<Integer> values) {
            addCriterion("DataNo not in", values, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoBetween(Integer value1, Integer value2) {
            addCriterion("DataNo between", value1, value2, "datano");
            return (Criteria) this;
        }

        public Criteria andDatanoNotBetween(Integer value1, Integer value2) {
            addCriterion("DataNo not between", value1, value2, "datano");
            return (Criteria) this;
        }

        public Criteria andInterestIsNull() {
            addCriterion("interest is null");
            return (Criteria) this;
        }

        public Criteria andInterestIsNotNull() {
            addCriterion("interest is not null");
            return (Criteria) this;
        }

        public Criteria andInterestEqualTo(Long value) {
            addCriterion("interest =", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotEqualTo(Long value) {
            addCriterion("interest <>", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThan(Long value) {
            addCriterion("interest >", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThanOrEqualTo(Long value) {
            addCriterion("interest >=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThan(Long value) {
            addCriterion("interest <", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThanOrEqualTo(Long value) {
            addCriterion("interest <=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestIn(List<Long> values) {
            addCriterion("interest in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotIn(List<Long> values) {
            addCriterion("interest not in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestBetween(Long value1, Long value2) {
            addCriterion("interest between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotBetween(Long value1, Long value2) {
            addCriterion("interest not between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIsNull() {
            addCriterion("PagePicDetail is null");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIsNotNull() {
            addCriterion("PagePicDetail is not null");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailEqualTo(String value) {
            addCriterion("PagePicDetail =", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotEqualTo(String value) {
            addCriterion("PagePicDetail <>", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailGreaterThan(String value) {
            addCriterion("PagePicDetail >", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailGreaterThanOrEqualTo(String value) {
            addCriterion("PagePicDetail >=", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLessThan(String value) {
            addCriterion("PagePicDetail <", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLessThanOrEqualTo(String value) {
            addCriterion("PagePicDetail <=", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLike(String value) {
            addCriterion("PagePicDetail like", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotLike(String value) {
            addCriterion("PagePicDetail not like", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIn(List<String> values) {
            addCriterion("PagePicDetail in", values, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotIn(List<String> values) {
            addCriterion("PagePicDetail not in", values, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailBetween(String value1, String value2) {
            addCriterion("PagePicDetail between", value1, value2, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotBetween(String value1, String value2) {
            addCriterion("PagePicDetail not between", value1, value2, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeIsNull() {
            addCriterion("borrowAgree is null");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeIsNotNull() {
            addCriterion("borrowAgree is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeEqualTo(String value) {
            addCriterion("borrowAgree =", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeNotEqualTo(String value) {
            addCriterion("borrowAgree <>", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeGreaterThan(String value) {
            addCriterion("borrowAgree >", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeGreaterThanOrEqualTo(String value) {
            addCriterion("borrowAgree >=", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeLessThan(String value) {
            addCriterion("borrowAgree <", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeLessThanOrEqualTo(String value) {
            addCriterion("borrowAgree <=", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeLike(String value) {
            addCriterion("borrowAgree like", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeNotLike(String value) {
            addCriterion("borrowAgree not like", value, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeIn(List<String> values) {
            addCriterion("borrowAgree in", values, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeNotIn(List<String> values) {
            addCriterion("borrowAgree not in", values, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeBetween(String value1, String value2) {
            addCriterion("borrowAgree between", value1, value2, "borrowagree");
            return (Criteria) this;
        }

        public Criteria andBorrowagreeNotBetween(String value1, String value2) {
            addCriterion("borrowAgree not between", value1, value2, "borrowagree");
            return (Criteria) this;
        }
    }

    /**
     * jyh_base_info
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-18
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_base_info 2017-10-18
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}